export function diGuiDiaoyong(list, rootValue) { // 递归
  const arr = []
  list.forEach(item => {
    if (item.parentId === rootValue) {
      arr.push(item)
      const children = diGuiDiaoyong(list, item.id)
      if (children.length) {
        item.children = children
      }
    }
  })
  return arr
}
